﻿Public Class LoginWithPassword
    Inherits System.Web.UI.UserControl
    Private gebrNaam As String
    Private password As String
    Public Event btnEvent As System.EventHandler

    Public ReadOnly Property GebruikersNaam()
        Get
            Return gebrNaam
        End Get
    End Property

    Public ReadOnly Property Paswoord() As String
        Get
            Return password
        End Get
    End Property


    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub
    'Say again ? :-) LoginWithPAssword is de naam van de Usercontrol ?

    Protected Sub btnLog_Click(sender As Object, e As EventArgs) Handles btnLog.Click
        gebrNaam = txtGebrNaam.Text
        password = txtPaswoord.Text
        'Stom he, bij C# gwn subscriben en zeggen welke functie, stomme asp / vb
        'kweet, drm dat ik dit iet begrijp, het zou moete werke
        RaiseEvent btnEvent(sender, New EventArgs())
    End Sub
End Class